package com.lcf.common.enums;

import lombok.Getter;

/**
 * 描述：服务-表名
 *
 * @author lcf
 * @since 2025/4/1 20:28
 */
@Getter
public enum ServiceTableEnum {
    SYSTEM_SYS_USER(ServiceEnum.SYSTEM, "sys_user"),
    SYSTEM_SYS_ROLE(ServiceEnum.SYSTEM, "sys_role"),
    SYSTEM_SYS_ROLE_MENU(ServiceEnum.SYSTEM, "sys_role_menu"),
    SYSTEM_SYS_MENU(ServiceEnum.SYSTEM, "sys_menu"),
    SYSTEM_SYS_DICT(ServiceEnum.SYSTEM, "sys_dict");

    private final ServiceEnum serviceName;
    private final String tableName;

    ServiceTableEnum(ServiceEnum serviceName, String tableName) {
        this.serviceName = serviceName;
        this.tableName = tableName;
    }

    /**
     * 服务名
     */
    @Getter
    public enum ServiceEnum {
        SYSTEM("system-service");

        private final String serviceName;

        ServiceEnum(String serviceName) {
            this.serviceName = serviceName;
        }
    }
}
